package com.internetCafes.spms.web.sys.model;

import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 菜单管理
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2019-10-29 00:11:51
 */
public class MenuInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	
    /**
     * 
     */
	private Long menuId;

    /**
     * 父菜单ID，一级菜单为0
     */
	private Long parentId;

    /**
     * 菜单名称
     */
	private String name;

    /**
     * 菜单URL
     */
	private String url;

    /**
     * 授权(多个用逗号分隔，如：user:list,user:create)
     */
	private String perms;

    /**
     * 类型   0：目录   1：菜单   2：按钮
     */
	private Integer type;

    /**
     * 菜单图标
     */
	private String icon;

    /**
     * 排序
     */
	private Integer orderNum;


	private List<?> list;

	private String parentName;

	private boolean open;



	@JSONField(name = "menu_id")
	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public Long getMenuId() {
		return menuId;
	}

	@JSONField(name = "parent_id")
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getParentId() {
		return parentId;
	}

	@JSONField(name = "name")
	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	@JSONField(name = "url")
	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return url;
	}

	@JSONField(name = "perms")
	public void setPerms(String perms) {
		this.perms = perms;
	}

	public String getPerms() {
		return perms;
	}

	@JSONField(name = "type")
	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return type;
	}

	@JSONField(name = "icon")
	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIcon() {
		return icon;
	}

	@JSONField(name = "order_num")
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public List<?> getList() {
		return list;
	}

	public void setList(List<?> list) {
		this.list = list;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}
}
